﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="comp_pub_view.aspx.cs" Inherits="HY.WEB.SA.comppubview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
  <form id="form1" runat="server">
    <div >
    
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2"  />
        <ext:HiddenField ID="hidstype" runat="server"></ext:HiddenField>
   
     
        <ext:Panel ID="Panel2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="true" ShowHeader="false" Title="Panel" Height="200" AutoScroll="true">
            <Items>
          
 <ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true">
<Rows>
<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="查询字段"  >
</ext:DropDownList>

<ext:DropDownList ID="ddlwhere" runat="server" Label="查询条件"  >
</ext:DropDownList>

<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
 Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
　OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>

    <ext:Button ID="btnSearch" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>


        <ext:Panel ID="Panel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
            ShowBorder="false" ShowHeader="false" Title="Panel">
            <Items>
        

  
  <ext:Grid ID="Grid1" Title="数据列表"   AutoScroll="true"    Height="500px"  PageSize="15" ShowBorder="true"
      ShowHeader="true" 
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid,cbh"  AllowSorting="true" 
        EnableRowNumber="True" OnSort="Grid1_Sort" >
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                   
                    <ext:Button ID="btnGet" Text="收藏选中项" Icon="Accept" OnClick="btnGet_Click" runat="server">
                    </ext:Button>
                                        
                    <ext:Button ID="btnno" Text="公共信息" Icon="ApplicationOsxGet" OnClick="btnno_Click" runat="server">
                    </ext:Button>
                      
                    <ext:Button ID="btnyes" Text="个人信息" Icon="ApplicationPut" OnClick="btnyes_Click" runat="server">
                    </ext:Button>
                      <ext:Button ID="btndel" Text="回收站" Icon="Delete" OnClick="btndel_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:TemplateField Width="50px"  HeaderText="编号" >
                <ItemTemplate>            
                   <%#(Eval("cbh").ToString().Trim()).Substring(2, (Eval("cbh").ToString().Trim()).Length-2)%> 
                      </ItemTemplate>                     
             </ext:TemplateField>
              <ext:TemplateField Width="30px"  HeaderText="收藏" >
                <ItemTemplate>            
                    <asp:Image ID="Image1" runat="server" ImageUrl=<%#checkico(Eval("cbh").ToString())%>  />
                      </ItemTemplate>                     
             </ext:TemplateField>
                
                   <ext:HyperLinkField  Width="160px"   DataToolTipField="cname" DataTextField="cname"  SortField="cname" HeaderText="企业名称" 
            DataNavigateUrlFields="cbh" DataNavigateUrlFormatString="comp_view_job.aspx?cbh={0}" DataNavigateUrlFieldsEncode="true"   target="_blank" />
          
               <ext:BoundField  Width="80px" DataField="person" DataFormatString="{0}" SortField="person" HeaderText="联系人" />
                   <ext:BoundField  Width="80px" DataField="job" DataFormatString="{0}" SortField="job" HeaderText="职位" />
              <ext:BoundField  Width="130px"  DataField="ctel" DataFormatString="{0}" SortField="ctel" HeaderText="公司电话" />
                  <ext:BoundField  Width="110px"   DataField="mtel" DataFormatString="{0}" SortField="mtel" HeaderText="手机" />

               <ext:BoundField  Width="110px"  DataField="addresss" DataFormatString="{0}" SortField="addresss" HeaderText="地址" />  
  <ext:BoundField  Width="50px"  DataField="sales" DataFormatString="{0}" SortField="sales" HeaderText="业务员" />  
                <ext:BoundField   Width="80px"  DataField="updtime" DataFormatString="{0:yyyy-MM-dd hh:MM:ss}" HeaderText="更新日期" />              
                    
                      <ext:WindowField ColumnID="myWindowField" Width="50px" WindowID="Window2" HeaderText="更多联系人"
                Icon="Telephone" ToolTip="状态" DataTextFormatString="{0}" DataIFrameUrlFields="cbh"
                DataIFrameUrlFormatString="pubtel_view.aspx?bh={0}" DataWindowTitleField="cname"
                DataWindowTitleFormatString="联系人 - {0}" />
        </Columns>
    </ext:Grid>
               
          </Items>
        </ext:Panel>
       
                          <ext:Button ID="Button3" runat="server" Text="首页"   CssClass="inline"   OnClick="btnf_Click"> </ext:Button>
                  <ext:Button ID="Button1" runat="server" Text="上一页"   CssClass="inline"  OnClick="btnpre_Click"></ext:Button>
                    <ext:Button ID="Button2" runat="server" Text="下一页"  CssClass="inline"  OnClick="btnnext_Click" >     </ext:Button>    
                <ext:Button ID="Button4" runat="server" Text="尾页"   CssClass="inline"   OnClick="btne_Click" > </ext:Button>
                  
                   
                       <ext:TextBox ID="txtgo"  runat="server" ShowLabel="false"   CssClass="inline"  Width="20px" Text="1" >  </ext:TextBox>
                <ext:Button ID="btngo" runat="server"  Text="Go"   CssClass="inline"  OnClick="btngo_Click" ></ext:Button>
                 <ext:Label runat="server" Label="当前页" Text=""   CssClass="inline" ID="lblpgid" > </ext:Label>
                    <ext:Label runat="server"   Label="总页数" Text="" ShowLabel="true"  CssClass="inline" ID="lblpgct" >  </ext:Label>
         
                
         </Items>
        </ext:Panel>

          <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="309px">
          </ext:Window>

           <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="509px">
    </ext:Window>
    </div>
    </form>
</body>
</html>
